<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>例会记录信息</title>
		<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

a {
	font-size: 15px;
	color:#000;
	text-decoration: none;
}
a:hover {
	color:#CA5466;
	text-decoration:underline;
}

.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	color: #03515d;
	font-size: 12px;
}

.td_bg {
	font-size: 13px;
	background: #fff;
	border:1px solid #6495ED;
}

/*表单项的字体格式*/
.td_x_bg {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background: #BDE3FB;
	border:1px solid #6495ED;
	height:40px;
} 

.table {
	margin-top: 10px;
}
</style>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/checkUtil.js"></script>

	</head>

	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[例会记录]-[查看例会详细]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td>
																</td>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1"></td>
																<td class="STYLE1"><br></td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<table class="table" border="1" width="70%" align="center"
									cellpadding="2" cellspacing="2" bordercolor="#6495ED">
									<tbody>
										<tr>
											<td class="td_x_bg" colspan="4" style="font-size:20px">
												<nobr>
													知通例会 会议纪要
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg" width=15% >
												<nobr >
													聚会时间
												</nobr>
											</td>
											<td class="td_bg"   >
												<nobr>
													<s:date name="meetRecord.meetDate" format="yyyy年MM月dd日" nice="false"/>
												</nobr>
											</td>
											<td class="td_x_bg"  width=15% >
												<nobr>
													地点
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<s:property value="meetRecord.location" />
												</nobr>
											</td>
											
										</tr>
										<tr>
											<td class="td_x_bg" width=15% >
												<nobr>
													组名
												</nobr>
											</td>
											<td class="td_bg" >
												<nobr>
													<s:property value="meetRecord.group.groupName" />组
												</nobr>
											</td>
											<td class="td_x_bg" width=15% >
												<nobr>
													周数
												</nobr>
											</td>
											<td class="td_bg" >
												<nobr>
													<s:if test="meetRecord.schoolYear == 20082009" >
													08-09学年
													</s:if> 
													<s:elseif test="meetRecord.schoolYear == 20092010" >
													09-10学年
													</s:elseif>
													<s:elseif test="meetRecord.schoolYear == 20102011" >
													10-11学年
													</s:elseif>
													
													第
													<s:property value="meetRecord.semester" />
													学期
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg"  width=15% >
												<nobr>
													开始时间
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<s:property value="meetRecord.startTime" />
												</nobr>
											</td>
											<td class="td_x_bg"  width=15% >
												<nobr>
													结束时间
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<s:property value="meetRecord.endTime" />
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg"  width=15% >
												<nobr>
													主持人
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<a href="front/getMemberInfo.action?user.id=<s:property value="meetRecord.organizer.id" />" >
														<s:property value="meetRecord.organizer.name"/>
													</a>
												</nobr>
											</td>
											<td class="td_x_bg" width=15% >
												<nobr>
													记录人
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<a href="front/getMemberInfo.action?user.id=<s:property value="meetRecord.recorder.id" />" >
														<s:property value="meetRecord.recorder.name"/>
													</a>
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg" width=15% >
												<nobr>
													出席人员
												</nobr>
											</td>
											<td class="td_bg" colspan="3" >
												<nobr>
													<s:property value="meetRecord.joiner" />
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg"  width=15% >
												<nobr>
													请假
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<s:property value="meetRecord.leaver" />
												</nobr>
											</td>
											<td class="td_x_bg" width=15% >
												<nobr>
													缺席（未请假）
												</nobr>
											</td>
											<td class="td_bg">
												<nobr>
													<s:property value="meetRecord.absence" />
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg"  width=15% >
												<nobr>
													列席
												</nobr>
											</td>
											<td class="td_bg" colspan="3">
												<nobr>
													<s:property value="meetRecord.hearer" />
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_x_bg" colspan="4" >
												<nobr>
													会议讨论及决定的主要事项
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_bg" colspan="4" >
												<div>
													<s:property value="meetRecord.mainContent" escape="false" />
												</div>			
											</td>
										</tr>
										<tr>
											<td class="td_x_bg" colspan="4">
												<nobr>
													后续需要跟踪的事情
												</nobr>
											</td>
										</tr>
										<tr>
											<td class="td_bg" colspan="4" >
												<div>
													<s:property value="meetRecord.followThing" escape="false" />
												</div>		
											</td>
										</tr>
									</tbody>
								</table>
								<table width="70%" align="center" style="margin-top:10px">
									<tr>
										<td class="td_bg" style="padding:10px;font-weight:bold;">
											来自大家的留言：
										</td>
									</tr>
								</table>
								<s:if test="mRMessages.size == 0">
								<table class="table" border="1" width="70%" align="center"
									cellpadding="2" cellspacing="2" bordercolor="#6495ED" >
									<tr>
										<td class="td_x_bg" style="text-align:left;padding-left:20px;">
											暂无留言
										</td>
									</tr>
								</table>
								</s:if>
								<s:else>
								<table class="table" border="1" width="70%" align="center"
										cellpadding="2" cellspacing="2" bordercolor="#6495ED" >
										<tbody>
											<tr>
												<td class="td_x_bg" width="120px">
													<nobr>
														留言者
													</nobr>
												</td>
												<td class="td_x_bg" style="text-align:left;padding-left:20px;">
													<nobr>
														内容
													</nobr>
												</td>
												<s:if test="#session.user.post in {3,4}" >
												<td class="td_x_bg" width="50px">
													<nobr>
														操作
													</nobr>
												</td>
												</s:if>
												
											</tr>
											
											<s:iterator value="mRMessages" var="mRMessages" status="status" >
											<tr>
												<td class="td_bg" width="120px">
													<nobr>
														<s:property value="#status.count + (page.currentPage-1)*page.pageSize" />..
														<a href="front/getMemberInfo.action?user.id=<s:property value="#mRMessages.user.id" />" >
															<s:property value="#mRMessages.user.name" />
														</a>
													</nobr>
												</td>
												<td class="td_bg">
														<div>
															<s:property value="#mRMessages.content" escape="false" />
														</div>
													<span style="float:right;">时间：<s:date name="#mRMessages.messageTime" format="yyyy年MM月dd日 hh:mm:ss" nice="false"/></span>
												</td>
												<s:if test="#session.user.post in {3,4}" >
												<td class="td_bg" style="padding:0;font-weight:normal;font-size:11px;text-align:center;">
													<nobr>
														<a href="front/deleteMRMessage.action?meetRecordMessage.id=<s:property value="#mRMessages.id"/>&meetRecordMessage.meetRecord.id=<s:property value="#mRMessages.meetRecord.id"/>"
														 onclick="return confirm('确认删除？');">删除</a>
													</nobr>
												</td>
												</s:if>
											</tr>
											</s:iterator>
									</table>
									<form action="front/getMeetRecord.action?meetRecord.id=<s:property value="meetRecord.id"/>" method="get" Style="margin:0">
										<table width="70%" border="0" cellspacing="0" cellpadding="0" align="center">
											<tr>
												<td class="STYLE4">
													&nbsp;&nbsp;共有 <s:property value="page.rowCount" /> 条记录，
													当前第 <s:property value="page.currentPage" /> / <s:property value="page.pageCount" /> 页
												</td>
												<td>
													<table border="0" align="right" cellpadding="0"
														cellspacing="0">
														<tr>
															<td width="40">
																<a href="front/getMeetRecord?page.currentPage=1&meetRecord.id=<s:property value="meetRecord.id"/>"><img src="images/main/first.gif"
																		width="37" height="15" border="0" />
																</a>
															</td>
															<s:if test="page.currentPage != 1" >
															<td width="45">
																<a href="front/getMeetRecord?page.currentPage=<s:property value="page.currentPage - 1" />&meetRecord.id=<s:property value="meetRecord.id"/>"><img src="images/main/back.gif"
																		width="43" border="0" height="15" />
																</a>
															</td>
															</s:if>
															<s:if test="page.currentPage != page.pageCount" >
															<td width="45">
																<a href="front/getMeetRecord?page.currentPage=<s:property value="page.currentPage + 1" />&meetRecord.id=<s:property value="meetRecord.id"/>"><img src="images/main/next.gif"
																		width="43" border="0" height="15" />
																</a>
															</td>
															</s:if>
															<td width="40">
																<a href="front/getMeetRecord?page.currentPage=<s:property value="page.pageCount" />""><img src="images/main/last.gif"
																		border="0" width="37" height="15" />
																</a>
															</td>
															<td width="100">
																<div align="center">
																	<span class="STYLE1">转到第 <input name="page.currentPage"
																			type="text" size="4"
																			style="height: 12px; width: 20px; border: 1px solid #999999;" />
																		页 </span>
																</div>
															</td>
															<td width="40">
																<input type="image" src="images/main/go.gif" width="37"
																	height="15" />
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</form>
									</s:else>
									<form action="front/addMRMessage.action" method="post" onsubmit="return checkAddMRM();" >
									<table class="table" border="1" width="70%" align="center"
										cellpadding="2" cellspacing="2" bordercolor="#6495ED">
										<tbody>

											<tr>

												<td class="td_x_bg" colspan="2">
													<nobr>
														__我要留言__
													</nobr>
												</td>
											</tr>
											<tr>
												<td class="td_bg" width="120px" style="text-align:center;padding-top:20px;" valign="top" >
													<nobr>
														<img src="<s:property value="#session.user.headImg.imgSrc" />" width="100"  />
													</nobr>
												</td>
												<td class="td_bg" >
													<script src="/ztmStruts2/FCKeditor/fckeditor.js" ></script>
													<script>
											            var editor = new FCKeditor('meetRecordMessage.content');
											            editor.BasePath = '/ztmStruts2/FCKeditor/';
											            editor.Height = 200;
											            editor.Width = 600;
											            editor.ToolbarSet = 'answer';
											            editor.Create();
											         </script>
												</td>
											</tr>
											<tr>
												<td class="td_bg" colspan="2">
													<input type="hidden" name="meetRecordMessage.meetRecord.id" value="<s:property value="meetRecord.id" />" />
													<input type="hidden" name="meetRecordMessage.user.id" value="<s:property value="#session.user.id" />" />
													<input type="submit" value="发表留言" style="width:80px;height:35px;margin-left:130px;" /> 
													<input type="reset" value="重写" style="width:80px;height:35px;margin-left:40px;" /> 
												</td>
											</tr>
										</tbody>
									</table>
									</form>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<form action="" method="get">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												&nbsp;
											</td>
										</tr>
									</table>
								</form>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
